<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<link rel="stylesheet" href="${ctx}/css/pass.css">
<!-- 顶部模块[如：功能按钮、搜索面板] -->
<div class="bjui-pageHeader" style="background:#FFF;">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/sys/sysLogAction/toList" method="post">
        <input type="hidden" name="pageSize" value="${pageResult.pageSize}">
        <input type="hidden" name="pageCurrent" value="${pageResult.pageCurrent}">
        <input type="hidden" name="orderField" value="${pageResult.orderField}">
        <input type="hidden" name="orderDirection" value="${pageResult.orderDirection}">  
		<label>操作人员：<input id="paramAccount" type="text" name="paramAccount" value="${pageResult.ext.paramAccount}" placeholder="请输入操作人员" style="width:140px;"/></label>
		<label>实践地点：<input id="paramLocal" type="text" name="paramLocal" value="${pageResult.ext.paramLocal}" placeholder="请输入实践地点" style="width:140px;"/></label>
		<label>IP地址：<input id="paramIp" type="text" name="paramIp" value="${pageResult.ext.paramIp}" placeholder="请输入IP地址" style="width:140px;"/></label>
		<label>事件名称：<input id="paramEventName" type="text" name="paramEventName" value="${pageResult.ext.paramEventName}" placeholder="请输入事件名称" style="width:140px;"/></label>
		<label>事件描述：<input id="paramEventRecord" type="text" name="paramEventRecord" value="${pageResult.ext.paramEventRecord}" placeholder="请输入事件描述" style="width:140px;"/></label>
	     	<label>操作日期：<input id="paramLogDate" type="text" name="paramLogDate" data-toggle="datepicker" value="${pageResult.ext.paramLogDate}" placeholder="请输入操作日期" style="width:140px;"/></label>
	   	<label for="paramType"> 日志类型：
	   	<select id="paramType" name="paramType" data-toggle="selectpicker">
	   						<c:choose>
	   							<c:when test="${pageResult.ext.paramType=='1'}">
	   								<option value="1"  selected="selected">安全日志</option>
	   								<option value="2">操作日志</option>
	   							</c:when>
	   							<c:otherwise>
	   								<option value="1" >安全日志</option>
	   								<option value="2" selected="selected">操作日志</option>
	   							</c:otherwise>
	   						</c:choose>
					   	</select>
	   	</label>
	   	<button class="btn-default" data-icon="search">查询</button>
   	</form>
</div>
<!-- 内容区 -->
<div class="bjui-pageContent tableContent">
    <table id="doc-datagrid-table" class="table table-bordered table-hover" >
     <thead>
    		<tr style="height:30px;" class="m_th_row">
	    		<th>操作人员</th>
	    		<th>实践地点</th>
	    		<th>日志类型</th>
	    		<th>IP地址</th>
	    		<th>事件名称</th>
	    		<th>事件描述</th>
	    		<th>参数描述</th>
	    		<th>事件日期</th>
    		</tr>
    	</thead> 
    	<tbody>
    	<c:forEach items="${pageResult.list}" var="u">
    		<tr data-id="${u.id}">
    			<td>${u.account}</td>
    			<td>${u.local}</td>
    			<td>${u.typeStr}</td>
    			<td>${u.ip}</td>
    			<td>${u.eventName}</td>
    			<td>${u.eventRecord}</td>
    			<td>${u.params}</td>
    			<td class="m_datetime">${u.logDate}</td>
    		</tr>
    	</c:forEach>
    	</tbody> 
    </table>
</div>
<!-- 底部模块[如：工具条、分页组件]  -->
<div class="bjui-pageFooter"> 
    <div class="pages">
	    <span>每页 </span>
	    <div class="selectPagesize">
	        <select data-toggle="selectpicker" data-toggle-change="changepagesize">
	            <option value="10">10</option>
	            <option value="30">30</option>
	            <option value="60">60</option>
	            <option value="100">100</option>
	        </select>
	    </div>
	    <span> 条，共 ${pageResult.total} 条</span>
	</div>
	<div class="pagination-box" data-toggle="pagination" data-total="${pageResult.total}" data-page-size="${pageResult.pageSize}" data-page-current="${pageResult.pageCurrent}"></div>
</div>